package cn.jingyuan.owl.web.oauth2.client;

import java.io.Serializable;

/**
 * Client details for OAuth2
 */
public class DefaultOAuth2ClientDetails implements Serializable {

    /** Client Id */
    private String clientId;

    /** Client Secret */
    private String clientSecret;

    /** Whether this client is limited to a specific scope */
    private String scope;

    /** The URL to use to obtain an OAuth2 access token */
    private String accessTokenUri;

    /** The URI to which the user is to be redirected to authorize an access token */
    private String userAuthorizationUri;

    /** User info URI for the provider */
    private String userInfoUri;

    /** The pre-defined redirect URI for this client */
    private String redirectUri;

    public DefaultOAuth2ClientDetails() { }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getClientSecret() {
        return clientSecret;
    }

    public void setClientSecret(String clientSecret) {
        this.clientSecret = clientSecret;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public String getAccessTokenUri() {
        return accessTokenUri;
    }

    public void setAccessTokenUri(String accessTokenUri) {
        this.accessTokenUri = accessTokenUri;
    }

    public String getUserAuthorizationUri() {
        return userAuthorizationUri;
    }

    public void setUserAuthorizationUri(String userAuthorizationUri) {
        this.userAuthorizationUri = userAuthorizationUri;
    }

    public String getUserInfoUri() {
        return userInfoUri;
    }

    public void setUserInfoUri(String userInfoUri) {
        this.userInfoUri = userInfoUri;
    }

    public String getRedirectUri() {
        return redirectUri;
    }

    public void setRedirectUri(String redirectUri) {
        this.redirectUri = redirectUri;
    }

}
